// Copyright (c) 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/**
*@describe:
*@author wfl19/Kristas
*@date 2021/10/01
 */

package feign

import (
	"gitee.com/kristas/booting-go/framework"
	"gitee.com/kristas/booting-go/framework/core/statement/types"
)

func init() {
	framework.Component(new(FactoryImpl))
}

type Factory interface {
	GetTestClient() TestClient
}

type FactoryImpl struct {
	types.Component `name:"feign_factory"`
	TestClient      TestClient `wire:""`
}

func (r *FactoryImpl) GetTestClient() TestClient {
	return r.TestClient
}
